﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Sys_Button: CustomAggregateRoot<string>
    {

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        [Required]
        [StringLength(50)]
        public string Code { get; set; }

        public int Sort { get; set; }

        public virtual ICollection<Sys_ModuleButton> Sys_ModuleButton { get; } = new HashSet<Sys_ModuleButton>();

        public virtual ICollection<Sys_RoleModuleButton> Sys_RoleModuleButton { get; } = new HashSet<Sys_RoleModuleButton>();

    }
}
